<a href='https://github.com/angular/angular.js/edit/v1.6.x/src/minErr.js?message=docs(angular.errorHandlingConfig)%3A%20describe%20your%20change...#L13' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this Doc</a>



<a href='https://github.com/angular/angular.js/tree/v1.6.6/src/minErr.js#L13' class='view-source pull-right btn btn-primary'>
  <i class="glyphicon glyphicon-zoom-in">&nbsp;</i>View Source
</a>


<header class="api-profile-header">
  <h1 class="api-profile-header-heading">angular.errorHandlingConfig</h1>
  <ol class="api-profile-header-structure naked-list step-list">
    
    <li>
      - function in module <a href="api/ng">ng</a>
    </li>
  </ol>
</header>





<div class="api-profile-description">
  <p>Configure several aspects of error handling in AngularJS if used as a setter or return the
current configuration if used as a getter. The following options are supported:</p>
<ul>
<li><strong>objectMaxDepth</strong>: The maximum depth to which objects are traversed when stringified for error messages.</li>
</ul>
<p>Omitted or undefined options will leave the corresponding configuration values unchanged.</p>

</div>




<div>
  

  

  <h2 id="usage">Usage</h2>
    
      <p><code>angular.errorHandlingConfig([config]);</code></p>


    

    
<section class="api-section">
  <h3>Arguments</h3>

<table class="variables-matrix input-arguments">
  <thead>
    <tr>
      <th>Param</th>
      <th>Type</th>
      <th>Details</th>
    </tr>
  </thead>
  <tbody>
    
    <tr>
      <td>
        config
        
        <div><em>(optional)</em></div>
      </td>
      <td>
        <a href="" class="label type-hint type-hint-object">Object</a>
      </td>
      <td>
        <p>The configuration object. May only contain the options that need to be
    updated. Supported keys:</p>
<ul>
<li><code>objectMaxDepth</code>  <strong>{Number}</strong> - The max depth for stringifying objects. Setting to a
non-positive or non-numeric value, removes the max depth limit.
Default: 5</li>
</ul>

        
      </td>
    </tr>
    
  </tbody>
</table>

</section>
    
    

  
  
  



  
</div>


